
<table class="table table-hover table-striped table-bordered">
			<thead>
				<tr>
					<th>#</th>
					<!-- <th><?php echo $this->Paginator->sort('Category.name', 'Categoria'); ?></th> -->
					<th><?php echo $this->Paginator->sort('service_id', 'Servicio'); ?></th>
					<th><?php echo $this->Paginator->sort('Clients.last_name', 'Cliente'); ?></th>
					<th><?php echo $this->Paginator->sort('date', 'Fecha'); ?></th>
					<th><?php echo $this->Paginator->sort('time_from', 'Horario de Inicio'); ?></th>
					<th><?php echo $this->Paginator->sort('time_to', 'Horario de fin'); ?></th>
				</tr>
			</thead>
			<tbody>
				<?php foreach ($data as $item) :?>
					<tr>
						<td><input type="checkbox" name='client_ids[]' value="<?php echo $item['Events']['id']?>"></td>
						<td><?php echo $item['Services']['name']?></td>
						<td><?php echo $item['Clients']['last_name'].' '.$item['Clients']['first_name']?></td>
						<td><?php echo $item['Events']['date']?></td>
						<td><?php echo $item['Events']['time_from']?></td>
						<td><?php echo $item['Events']['time_to']?></td>
						<!--
							<td>
								<button type="button" class="btn btn-xs btn-primary"><i class="glyphicon glyphicon-eye-open"></i>View</button>
								<button type="button" class="btn btn-xs btn-success"><i class="glyphicon glyphicon-pencil"></i>Edit</button>
								<button type="button" class="btn btn-xs btn-danger"><i class="glyphicon glyphicon-remove"></i>Delete</button>
							</td>
						-->
					</tr>
				<?php endforeach;?>	
			</tbody>
		</table>
	  <ul class="pagination">
      <?php 
        echo $this->Paginator->prev( '<<', array( 'class' => '', 'tag' => 'li' ), null, array( 'class' => 'disabled', 'tag' => 'li' ) );
        echo $this->Paginator->numbers( array( 'tag' => 'li', 'separator' => '', 'currentClass' => 'active', 'currentTag' => 'a' ) );
        echo $this->Paginator->next( '>>', array( 'class' => '', 'tag' => 'li' ), null, array( 'class' => 'disabled', 'tag' => 'li' ) );
      ?>
    </ul>